package a;

public class TestXuanke {
	public static void main(String[] args) {
	Course course = new Course(); 
	System.out.println(course.toString());

        Student stu0 = new Student(2020310123,"张三   ","女   ","汉族","大数据211");
        Student stu1 = new Student(2020310456,"李四   ","男   ","苗族","物联网211");
        Student stu2 = new Student(2020310789,"王五   ","女   ","回族","计算机211");
        Student stu3 = new Student(2020310666,"李六   ","男   ","白族","自动化211");
        Teacher tea0 = new Teacher(2000000888,"徐老师   ","性别：男   ");
        Teacher tea1 = new Teacher(2000000999,"陆老师   ","性别：女   ");
        Teacher tea2 = new Teacher(2000000233,"沈老师   ","性别：男   ");
        Course cour0 = new Course(101,"Java  ","教103   ","周四   9:30");
        Course cour1 = new Course(102," 形势与政策  ","教105   ","周五  13:30");
        Course cour2 = new Course(103,"离散数学  ","教207   ","周三  15:30");
        stu0.addCourse(cour0);
        stu0.addCourse(cour1);
        stu0.addCourse(cour2);
        stu1.addCourse(cour0);
        stu1.addCourse(cour1);
        stu1.addCourse(cour2);
        stu2.addCourse(cour1);
        stu3.addCourse(cour0);
        stu3.addCourse(cour2);
        tea0.addCourse(cour0);
        tea1.addCourse(cour1);
        tea2.addCourse(cour2); 
               
        stu0.removeCourse(cour0);
        stu1.removeCourse(cour2);
        stu1.removeCourse(cour1);
                
        stu0.displayCourse(); 
        stu1.displayCourse();
        stu2.displayCourse();
        stu3.displayCourse();    
        tea0.displayCourse();
        tea1.displayCourse();
        tea2.displayCourse();                      
        cour0.displayStudent();
        cour1.displayStudent();
        cour2.displayStudent(); 
	}
}



